broadway: Quiet initialisation failures
authorBastien Nocera <hadess@hadess.net>
Mon, 11 Oct 2021 11:55:35 +0000 (13:55 +0200)
committerBastien Nocera <hadess@hadess.net>
Mon, 11 Oct 2021 18:36:53 +0000 (20:36 +0200)
commitfc32c19ca7506aaf08b634916620ecbe699b51c0
tree58aea0e3d50805535c03a77242970d758d66c22d
parente6ae3b8a2befa0be0752310ca862da532cfb6bd4
broadway: Quiet initialisation failures

Broadway is the only GTK+ backend that throws an error on stderr for a
"display server" connection failure.

This causes problems when gtk_init_check() is used and unexpected error
output is generated such as with hotdoc, which fails when generating a
GTK plugin's documentation instead of overlooking the issue.

"Unable to init server: Could not connect: Connection refused"
gdk/broadway/gdkdisplay-broadway.c